package com.lj.map.syn.base;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by yangsp1 on 16/3/30.
 */
public class HashMapKey implements Comparable{
    public static AtomicInteger threadExcedCnt = new AtomicInteger(0);
    String name;

    public HashMapKey(String name) {
        this.name = name;
    }

    @Override
    public int hashCode() {
        return 3;
    }

    @Override
    public boolean equals(Object obj) {
        return false;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name.toString();
    }

    @Override
    public int compareTo(Object o) {
        return name.compareTo(((HashMapKey)o).getName());
    }
}
